package com.wing.bill.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.bill.entity.PurchaseBill;
import com.wing.bill.entity.vo.BillSignVO;
import com.wing.bill.entity.vo.BillTotalVO;
import com.wing.product.model.response.ProductItemVO;
import com.wing.res.model.request.TestItemData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 采购账单
 *
 * @author xiayang
 */
@Mapper
public interface PurchaseBillDao extends BaseMapper<PurchaseBill> {

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<PurchaseBill> billList(@Param("params") Map<String, Object> params);

    /**
     * 分页列表
     *
     * @param page
     * @param params
     * @return
     */
    List<PurchaseBill> billList(@Param("page") Page<PurchaseBill> page, @Param("params") Map<String, Object> params);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    PurchaseBill get(Long id);

    /**
     * 账单签收列表
     *
     * @param params
     * @return
     */
    List<BillSignVO> billSignList(@Param("params") Map<String, Object> params);

    /**
     * 账单统计列表
     *
     * @param params
     * @return
     */
    List<BillTotalVO> billTotalList(@Param("params") Map<String, Object> params);
}
